package com.kuizii.base.common.configs;



import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: nuanyang
 * @Date: 2019/12/11 0011 16:35
 */
@ConditionalOnClass(value = MapperFactory.class)
@Configuration
public class MapperFacotoryAutoWire {
    @Bean
    public MapperFactory getFactory() {

        return new DefaultMapperFactory.Builder().build();
    }


}
